<!-- $Id: rg_marketing_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js,jquery.min.js"}
<!-- start goods list -->
<form method="post" action="" name="listForm">
<input type="hidden" name="goods_id" value="{$goods_id}" />
<div class="list-div" id="listDiv">
{/if}
  <table cellpadding="3" cellspacing="1">
  <tr>
  	<th>
      <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
      <a href="javascript:listTable.sort('m_id'); ">{$lang.record_id}</a>{$sort_m_id}
    </th>
    <th><a href="javascript:listTable.sort('m_name');">姓名</a>{$sort_m_name}</th>
    <th><a href="javascript:listTable.sort('id_code');">营销码</a>{$sort_id_code}</th>
    <th><a href="javascript:listTable.sort('m_moblie');">联系方式</a>{$sort_m_moblie}</th>
    <th><a href="javascript:listTable.sort('id_dist');">区域</a>{$sort_id_dist}</th>
    <th><a href="javascript:listTable.sort('id_store');">店面</a>{$sort_id_store}</th>
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$marketing_list item=marketing}
  <tr>
  	<td align="center"><input type="checkbox" name="checkboxes[]" value="{$marketing.m_id}" />{$marketing.m_id}</td>
    <td align="center"><span onclick="listTable.edit(this, 'edit_m_name', {$marketing.m_id})">{$marketing.m_name|escape:"html"}</span></td>
    <td align="center">{$marketing.code_name}</td>
    <td align="center">{$marketing.m_moblie}</td>
    <td align="center">{$marketing.area_name}</td>
    <td align="center">{$marketing.store_name}</td>
    <td align="center" nowrap="true" valign="top">
    <a href="?act=edit&amp;id={$marketing.m_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16"></a>
    <a href="javascript:;" onclick="listTable.remove({$marketing.m_id}, '你确认要删除这条记录吗？')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16"></a>
	</td>
  </tr>
    {foreachelse}
	<tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>
{if $full_page}
</div>
</form>
<!-- end goods list -->
<script type="text/javascript" language="JavaScript">
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}

{literal}
onload = function(){
    startCheckOrder();
}
{/literal}
</script>
{include file="pagefooter.htm"}
{/if}